import presetWeapp from 'unocss-preset-weapp'// 工具预设
import { defineConfig } from 'unocss'//api
//ransformerAttributify 属性化模式, transformerClass// 转换转义类名，支持class写法
import { transformerAttributify, transformerClass } from 'unocss-preset-weapp/transformer'

export default defineConfig({	//api配置
  presets: [
    presetWeapp(), // 工具预设
  ],
  transformers: [
    transformerAttributify(), // 支持属性化模式
    transformerClass(),	// 转换转义类名，支持class写法
  ],
  shortcuts: [
    { center: 'flex items-center justify-center' },
    { around: 'flex items-center justify-around' },
    { between: 'flex items-center justify-between' },
  ]
})
